window.onload = function() {
	console.log("cookie: ", document.cookie);
	console.log("cookie.get('userName'): ", cookie.get('userName'));
	if (cookie.get('userName')) {
		console.log("OK");

	} else {
		var preUrl = window.location.href
		alert("请先登录");
		location.href = "./login.html?preUrl=" + preUrl;
	}
}